#!/bin/sh
ps -A | grep php
if [ $? -ne 0 ]
then
cd /var/www/spider
php artisan command:spider
echo "begin..."
else
echo "running......"
fi
#####
